package com.gengine.core.frame
{
	
	public class FrameManager extends Object
	{
		private static var _flashFrame:IFrame;
		private static var _timerFrame:IFrame;
		private static var _mTimerFrame:IFrame;
		
		public function FrameManager()
		{
		}
		
		public static function get flashFrame() : IFrame
		{
			if (_flashFrame == null)
			{
				_flashFrame = new FlashFrame(24);
			}
			return _flashFrame;
		}
		
		public static function get timerFrame() : IFrame
		{
			if (_timerFrame == null)
			{
				_timerFrame = new TimerFrame();
			}
			return _timerFrame;
		}
		
		public static function get mTimerFrame() : IFrame
		{
			if (_mTimerFrame == null)
			{
				_mTimerFrame = new MTimerFrame();
			}
			return _mTimerFrame;
		}
	}
}
